package cc;

import org.mybatis.spring.annotation.MapperScan;

import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RestController;

import springfox.documentation.swagger2.annotations.EnableSwagger2;



/**

 * Hello world!

 *

 */

@SpringBootApplication

@RestController

@MapperScan(value = "cc.dao")

@EnableSwagger2

public class StartApp

{

    @GetMapping("/getInfo")

    public String greeting() {

        return "abcdefd";

    }



    public static void main( String[] args )

    {

        SpringApplication.run(StartApp.class, args);

        System.out.println( "程序已运行！" );

    }

}

